package com.easondongh.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author EasonDongH
 * @date 2020/6/2815:29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "bus_sales")
public class GoodsSales implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField(value = "customer_id")
    private Integer customerId;

    @TableField(exist = false)
    private String customerName;

    @TableField(value = "pay_type")
    private String payType;

    @TableField(value = "sales_time")
    private Date salesTime;

    @TableField(value = "operate_person")
    private String operatePerson;

    @TableField(value = "number")
    private Integer number;

    @TableField(value = "sales_price")
    private BigDecimal salesPrice;

    @TableField(value = "goods_id")
    private Integer goodsId;

    @TableField(exist = false)
    private String goodsName;

    @TableField(value = "remark")
    private String remark;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_CUSTOMER_ID = "customer_id";

    public static final String COL_PAY_TYPE = "pay_type";

    public static final String COL_SALES_TIME = "sales_time";

    public static final String COL_OPERATE_PERSON = "operate_person";

    public static final String COL_NUMBER = "number";

    public static final String COL_SALES_PRICE = "sales_price";

    public static final String COL_GOODS_ID = "goods_id";

    public static final String COL_REMARK = "remark";
}